package com.wmjsoft.view.token

import com.wmjsoft.validator.BaseValidator
import com.wmjsoft.validator.anno.NotEmpty
import com.wmjsoft.validator.anno.NotNull
import com.wmjsoft.validator.anno.Valid

data class TestValidator(
    @NotNull("sss")
    var username: String?,

    @NotNull("sss")
    var password: String?,

    @NotEmpty("wo kongle")
    @Valid
    var testOneValidator: TestOneValidator?,

    @NotEmpty("wo ")
    var testOneValidators: List<TestOneValidator>?
) : BaseValidator() {

    constructor() : this(null, null, null,null)

    override fun valid() {
        this.params["username"]
        this.renderJson("name","我在这里爆了一个大大的错")
    }



}

